#!/bin/sh
# 

SCRIPT=`readlink -f "$0"`
P=`dirname "$SCRIPT"` # $P/$0
#cd $P

$P/gm/lsfrcc.sh
if [ $? -ne 0 ]; then exit 1; fi

$P/fs/compile.sh
if [ $? -ne 0 ]; then exit 2; fi

for i in `ls $P/plugins/`
do
  if [ "$i" != "SDK" ]
  then
      echo "$i:"
    cd $P/plugins/$i
    make
    if [ $? -ne 0 ]; then exit 3; fi
  fi
done

#cd $P
